package com.zjw.zy.service.helper;

import androidx.annotation.NonNull;
import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleEventObserver;

import com.zjw.zy.AppService;
import com.zjw.zy.utils.AppUtils;

/**
 * @author ：zhong.jw
 * @date ：Created in 2022/10/17 14:04
 */
public abstract class BaseHelper {

    @NonNull
    protected AppService requireService() {
        AppService service = AppUtils.getService();
        if (service == null) {
            throw new RuntimeException("service == null");
        }
        return service;
    }

    public BaseHelper() {
    }
}
